/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package num7;

import java.util.ArrayList;

/**
 *
 * @author Usuário
 */
public class Persistencia {
    
    ArrayList<ListaModel> lista = new ArrayList<ListaModel>();
    //ArrayList<String> listaId = new ArrayList<String>();
    
    
    public ArrayList<ListaModel> lerContatos(){
//        ListaModel c = new ListaModel("kdc", "1234", "", "","31");
//        ListaModel c1 = new ListaModel("Netally", "9923", "", "","21");
//        ListaModel c2 = new ListaModel("Moemis", "4411", "", "", "28");
//        lista.add(c);
//        lista.add(c1);
//        lista.add(c2);
        LeXML ler = new LeXML();
        lista = ler.ler("src/num7/Contato.xml");
        return lista;
    }
    
}
